package CfengMiddleWare.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * RabbitMQ失效下单记录的历史记录表
 * </p>
 *
 * @author cfeng
 * @since 2022-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MqOrder extends Model<MqOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 下单记录id
     */
    private Integer orderId;

    /**
     * 失效下单记录的时间
     */
    private LocalDateTime businessTime;

    /**
     * 备注信息
     */
    private String memo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
